package com.tg.paw.ums.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.tg.paw.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户店铺关系
 * </p>
 *
 * @author Rubble
 * @since 2020-06-23
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ums_admin_store_relation")
@ApiModel(value="AdminStoreRelation对象", description="用户店铺关系")
public class AdminStoreRelation extends BaseEntity {


    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "用户id")
    @TableField("admin_id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long adminId;

    @ApiModelProperty(value = "店铺id")
    @TableField("store_id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long storeId;


}
